﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace DataMapper
{
    [AttributeUsage(AttributeTargets.Property)]
    [Serializable]
    public class ExcludeFieldAttribute : Attribute
    {
        /// <summary>
        ///     获取元数据的特性
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public static ExcludeFieldAttribute GetAttribute(MemberInfo item)
        {
            var excludeFieldAttribute = (ExcludeFieldAttribute)GetCustomAttribute(item, typeof(ExcludeFieldAttribute));
            return excludeFieldAttribute;
        }
    }
}
